﻿using System;
using System.Collections.Generic;

namespace ljtx
{
    class ServerInfo
    {
        #region 属性

        /// <summary>
        /// 服务商服务器地址
        ///     现在一般特指通行证
        /// </summary>
        private Dictionary<string, string> dicServerAddress_A = new Dictionary<string, string>();

        public Dictionary<string, string> DicServerAddress_A
        {
            get { return dicServerAddress_A; }
            set { dicServerAddress_A = value; }
        }

        /// <summary>
        /// 游戏服务器总地址
        /// </summary>
        private Dictionary<string, string> dicServerAddress_B = new Dictionary<string, string>();

        public Dictionary<string, string> DicServerAddress_B
        {
            get { return dicServerAddress_B; }
            set { dicServerAddress_B = value; }
        }

        /// <summary>
        /// 备用地址
        /// </summary>
        private Dictionary<string, string> dicServerAddress_C = new Dictionary<string, string>();

        public Dictionary<string, string> DicServerAddress_C
        {
            get { return dicServerAddress_C; }
            set { dicServerAddress_C = value; }
        }

        /// <summary>
        /// 游戏服务器分区地址
        /// </summary>
        private Dictionary<string, string> dicGameAddress_A = new Dictionary<string, string>();

        public Dictionary<string, string> DicGameAddress_A
        {
            get { return dicGameAddress_A; }
            set { dicGameAddress_A = value; }
        }

        /// <summary>
        /// 游戏备用地址
        /// </summary>
        private Dictionary<string, string> dicGameAddress_B = new Dictionary<string, string>();

        public Dictionary<string, string> DicGameAddress_B
        {
            get { return dicGameAddress_B; }
            set { dicGameAddress_B = value; }
        }

        #endregion

        /// <summary>
        /// 初始化此类时，进行硬编码服务器信息
        /// </summary>
        public ServerInfo()
        {
            this.dicServerAddress_A.Add("PPS", "i.pps.tv");

            this.dicServerAddress_B.Add("PPS", "game.pps.tv");

            this.dicGameAddress_A.Add("一区", "h1.g.pps.tv");
            this.dicGameAddress_A.Add("二区", "h2.g.pps.tv");
            this.dicGameAddress_A.Add("三区", "h3.g.pps.tv");
        }

    }
}
